package com.example.chatinterface;

import java.util.Date;

public class Msg {
    private Long id;
    private String name;
    private String msg;
    private Date time;
    private Boolean fromYou;
    private Boolean showTime;

    public Msg(Long id, String name, String msg, Date time, Boolean fromYou, Boolean showTime) {
        this.id = id;
        this.name = name;
        this.msg = msg;
        this.time = time;
        this.fromYou = fromYou;
        this.showTime = showTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Boolean getFromYou() {
        return fromYou;
    }

    public void setFromYou(Boolean fromYou) {
        this.fromYou = fromYou;
    }

    public Boolean getShowTime() {
        return showTime;
    }

    public void setShowTime(Boolean showTime) {
        this.showTime = showTime;
    }
}
